package com.lazy.book.common.entity;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author lazy
 * @since 2025-09-05
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TransferMessage {

  @Schema(description = "消息体bean")
  private SocketMessage message;

  @Schema(description = "消息接收人")
  private List<?> toUsers = new ArrayList<>();

  @Schema(description = "消息发送人")
  private String fromUser;

  @Schema(description = "是否通知全部用户")
  private boolean toPushAll = false;

}

